﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCMonHoc.ascx.cs" Inherits="Web.giamthi.UCMonHoc" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style2
    {
        width: 400px;
    }
</style>

<table class="style1">
    <tr>
        <td valign="top">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                Width="100%" DataKeyNames="MaMH" Height="250px" 
                onrowdeleting="GridView1_RowDeleting" 
                onselectedindexchanging="GridView1_SelectedIndexChanging" 
                BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" 
                CellPadding="4" GridLines="Horizontal" 
                onpageindexchanging="GridView1_PageIndexChanging" 
                onrowdatabound="GridView1_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="MaMH" HeaderText="Mã MH" />
                    <asp:BoundField DataField="tenmh" HeaderText="Tên MH" />
                    <asp:BoundField DataField="tongsotiet" HeaderText="Tong so tiet" />
                    <asp:BoundField DataField="maychieu" HeaderText="Máy chiếu" />
                    <asp:BoundField DataField="mota" HeaderText="Mô tả" />
                    <asp:CommandField ShowSelectButton="True" SelectText="Sửa" />
                    <asp:CommandField ShowDeleteButton="True" DeleteText="Xóa" />
                </Columns>
                <FooterStyle BackColor="White" ForeColor="#333333" />
                <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="White" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F7F7F7" />
                <SortedAscendingHeaderStyle BackColor="#487575" />
                <SortedDescendingCellStyle BackColor="#E5E5E5" />
                <SortedDescendingHeaderStyle BackColor="#275353" />
            </asp:GridView>
        </td>
        <td width="50px">
            &nbsp;</td>
        <td valign="top">
            <table class="style2">
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblError" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Tên môn học (*) :</td>
                    <td>
                        <asp:TextBox ID="txtTenMH" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Tổng số tiết (*)</td>
                    <td>
                        <asp:TextBox ID="txtTongSoTiet" runat="server" Width="50px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Máy chiếu (*)</td>
                    <td>
                        <asp:RadioButton ID="rdCo" runat="server" Checked="True" GroupName="groupMC" 
                            Text="Có" />
                        <asp:RadioButton ID="rdKo" runat="server" GroupName="groupMC" Text="Không" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Mô tả</td>
                    <td>
                        <asp:TextBox ID="txtMota" runat="server" Height="100px" TextMode="MultiLine" 
                            Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblId" runat="server" Visible="False"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnLuu" runat="server" Text="Lưu" onclick="btnLuu_Click" />
&nbsp;<asp:Button ID="btnHuy" runat="server" Text="Hủy" onclick="btnHuy_Click" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

